import request from "@/utils/request.js";

export function getPage(queryParams){
    return  request({
    url: '/webshop/person/listForPage',
    method: 'get',
    params: queryParams
})
}
export function editPage(id){
    return request({
        url: '/webshop/person/' + id,
        method: 'get',
    })
}

export function editSave(form){
    return request({
        url: '/webshop/person',
        method: 'put',
        data: form
    })
}
export function addSave(form){
    return request({
        url: '/webshop/person',
        method: 'post',
        data: form
    })
}
export function deleteIds(ids){
   return  request({
    url: '/webshop/person/' + ids,
    method: 'delete'
})
}

